<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

</head>
<body >
<div align="center">
    <?php if(is_array($power)): $i = 0; $__LIST__ = $power;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if(($vo["user"]) == "1"): ?><a href="<?php echo U('Home/User/index');?>">用户管理</a><?php endif; ?>
        <?php if(($vo["password"]) == "1"): ?><a href="<?php echo U('Home/Index/password');?>">修改密码</a><?php endif; ?>
        <?php if(($vo["operate"]) == "1"): ?><a href="<?php echo U('Home/Operate/index');?>">操作日志</a><?php endif; ?>
        <?php if(($vo["admin"]) == "1"): ?><a href="<?php echo U('Home/Admin/manage');?>">管理员管理</a><?php endif; ?>
        <?php if(($vo["oil"]) == "1"): ?><a href="<?php echo U('Home/Oil/index');?>">油品类型管理</a><?php endif; ?>
        <?php if(($vo["list"]) == "1"): ?><a href="<?php echo U('Home/List/index');?>" >车辆队列管理</a><?php endif; ?>
        <?php if(($vo["power"]) == "1"): ?><a href="<?php echo U('Home/Power/index');?>">权限管理</a><?php endif; ?>
        <?php if(($vo["announce"]) == "1"): ?><a href="<?php echo U('Home/Announce/index');?>">公告内容管理</a><?php endif; endforeach; endif; else: echo "" ;endif; ?>

</div>
<div align="center">
    <h2 >后台中心</h2>
    <a href="<?php echo U('Home/index/index');?>">退出</a>
    <a href="<?php echo U('Home/admin/index');?>">首页</a>
</div>
<hr />
</body>
</html>


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1" align="center">
    <tr>

        <th>油品类型</th>
        <th>创建时间</th>
        <th>更新时间</th>
        <th>操作</th>
    </tr>
    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>

            <td><?php echo ($vo["name"]); ?></td>
            <td><?php echo ($vo["create_time"]); ?></td>
            <td><?php echo ($vo["update_time"]); ?></td>
            <td>
                <a href="/index.php?c=oil&a=delete&id=<?php echo ($vo["id"]); ?>" style="background-color:#F00" id="delete">删除</a>
                <a href="/index.php?c=oil&a=update&id=<?php echo ($vo["id"]); ?>">修改</a>
                <a href=" <?php echo U('Oil/find',array('id'=>$vo['id']));?>">查看</a>
            </td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>

</table>
<div align="center">

    <a href="/index.php?c=oil&a=add">增加油品类型</a>
</div>
</body>
</html>